home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1046 < prev    next >
Encoding:
Text File  |  1996-08-06  |  2.3 KB  |  54 lines

  1. Newsgroups: comp.object,comp.software-eng,comp.lang.c++
  2. Path: in2.uu.net!world!tej
  3. From: tej@world.std.com (Thomas E Janzen)
  4. Subject: Re: Moving from C to C++
  5. Message-ID: <DKvvK9.CB6@world.std.com>
  6. Organization: The World Public Access UNIX, Brookline, MA
  7. References: <4cs44p$3pk@ixnews8.ix.netcom.com>
  8. Date: Mon, 8 Jan 1996 22:24:08 GMT
  9.  
  10. In article <4cs44p$3pk@ixnews8.ix.netcom.com>,
  11. Rocco Pochy  <pochy@pop.ix.netcom.com> wrote:
  12. >
  13. >Hello.
  14. >
  15. >Our company is looking at moving toward C++ and the object-oriented
  16. >paradigm.  Unfortunately, the engineering staff is trained in C. Does
  17.  
  18. My experience has been that no one is trained in C.
  19. First send them to classes in ANSI C.  Stroustrop said in a presentation 
  20. that the Kernighan and Ritchie 2nd edition is written in the "common 
  21. subset" of C and C++ ( I guess that's an intersection), so that book 
  22. might  help.  Make sure that they use compiler warnings and ANSI flags, 
  23. and learn the run-time library so that they stop writing their own 
  24. version of functions already in it.  If they each write their own 
  25. versions of little functions that others in the project also write,
  26. then C++ will NOT help them with re-use, because they don't do it in C.
  27. If they don't write structured, low-complexity code, they will write 
  28. junky C++.
  29.  
  30. If they don't do design now, and design interfaces, negotiating the 
  31. interfaces between developers writing communcating modules, they won't 
  32. know how to do it in C++ either, so it won't help there.
  33.  
  34. Write a coding standard and a style guide.
  35. Have them read lots of the new books on C coding, by Hatton and others.
  36.  
  37. Of course you will take a schedule hit.  There is no way around it.
  38. It will be a big hit.
  39.  
  40. Koenig said in a class that C++ could be taught with real abstractions 
  41. right from the beginning to new students; certainly knowledgable C 
  42. programmers could learn objects right away (note that I did not say 
  43. "experienced" C programmers, since most C programmers I meet are 
  44. experienced in doing it wrong).
  45.  
  46. Spend time learning differences between C++ compilers; C++ is not 
  47. standard yet and it is changing as the vendors including FSF try to catch 
  48. up with the standard committee.  
  49.  
  50. -- 
  51. Tom Janzen - tej@world.std.com USA Distributed Real-Time Data Acquisition S/W
  52. for Scientists and Engineers using POSIX, C, C++, X, Motif, Graphics, Audio
  53. There are no trivial programs, only trivial programmers.
  54.